﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PgAudOtros.aspx.cs" Inherits="EGuayas.Web.Auditoria.admin.Global.PgAudOtros" %>
<%@ Register src="~/Auditoria/admin/Global/wucPeriodicidad.ascx" tagPrefix="uc1" tagName="wucPeriodicidad" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title><link  href="~/Resources/css/Style.css"  rel="stylesheet" />
    <!-- Load Ext JS --> 
    <script src="../../../Resources/js/Global.js"></script>    
</head>
<body>
    <form id="form1" runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server" />    
    <uc1:wucPeriodicidad runat="server" id="wucPeriodicidad" Name="wucPeriodicidad" />
                <ext:FormPanel 
                           ID="frmAuditoria" 
                           runat="server" 
                           Border="false"                         
                           ButtonAlign="Center"
                           BodyStyle="background-color:#B6C1A6;"
                           BodyPadding="10"
                           Height="150"
                           Layout="Form">
                           <Items>
                                    
                                    <ext:DateField 
                                        ID="dtFechaInicio" 
                                        runat="server" 
                                        MsgTarget="Side" 
                                        AllowBlank="false"
                                        FieldLabel="Fecha Inicio" 
                                        Name="FechaInicio"
                                        Vtype="daterange" 
                                        EndDateField="dtFechaFin"
                                        EnableKeyEvents="true"
                                        />
                                    <ext:DateField 
                                        ID="dtFechaFin" 
                                        runat="server" 
                                        MsgTarget="Side" 
                                        AllowBlank="false"
                                        FieldLabel="Fecha Fin"
                                        Name="FechaFin"
                                        Vtype="daterange"
                                        StartDateField="dfFechaInicio"
                                        EnableKeyEvents="true" 
                                        />                                       
                           </Items>
                           <Listeners>
                                    <ValidityChange Handler="#{btnSave}.setDisabled(!valid);" />
                           </Listeners>
                           <Buttons>
                              <ext:Button ID="btnSave" runat="server" Text="Aceptar" Disabled="true">
                                <DirectEvents>
                                    <Click OnEvent="btnSave_Click">
                                        <ExtraParams>
                                            <ext:Parameter Name="prmValues" Value="Ext.encode(#{frmAuditoria}.getForm().getValues())" Mode="Raw" />
                                        </ExtraParams>
                                        <EventMask ShowMask="True"></EventMask>
                                    </Click>
                                </DirectEvents>
                              </ext:Button>
                           </Buttons>  
                         </ext:FormPanel>
              
          

    </form>
     <ext:XScript ID="XScript1" runat="server">
        <script type="text/javascript">
            var pgFn = new Object();
        
            pgFn.setReadOnly = function () {
                try 
                {                  
                    AppGlobalJs.setReadOnly(#{frmAuditoria},true);                
                } catch (jsbug) {
                    AppGlobalJs.showBug("pgFn.setReadOnly :" + jsbug)
                }
            }
        </script>
    </ext:XScript>
</body>
</html>
